package cn.kioye.system;

import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * @author xx
 * @date 2021-06-02 下午 12:49
 */
public interface ResultAvailableTimeDTO {


    @Data
    class ResultAvailableTimeResponse {
        private Integer ret;
        private Long rime;
        private Long cTime;
        private String message;
        private List<ResultAvailableTimePage> data;

    }

    @Data
    class ResultAvailableTimePage {
        private Map<String, String> title;
        private List<ResultAvailableTime> morning;
        private List<ResultAvailableTime> afternoon;

    }

    @Data
    class ResultAvailableTime {
        private Integer timePartType;
        private List<ResultAvailableTimeSource> source;
        private Integer amountUsed;
        private Integer amountTotal;
        private String sdate;
        private Integer avail;
    }

    @Data
    class ResultAvailableTimeSource {

        private String ouatId;
        private String timeBegin;
        private Integer amountUsed;
        private Integer amountTotal;
        private String timeEnd;
        private Integer avail;

    }
}
